<template>
  <svg-icon icon-class="fullscreen" style="color:#fff; width: 30px; height: 30px" @click="changeScreen" />
</template>

<script>
import Screenfull from 'screenfull'
export default {
  methods: {
    changeScreen() {
      if (!Screenfull.isEnabled) {
        this.$message.warning('全屏组件不可使用')
        return
      }
      Screenfull.toggle()
    }
  }
}
</script>

<style>

</style>
